package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.MeetingsManagementMapper;
import com.ruoyi.domain.MeetingsManagement;
import com.ruoyi.service.IMeetingsManagementService;
import com.ruoyi.common.core.text.Convert;

/**
 * 会议管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-07-21
 */
@Service
public class MeetingsManagementServiceImpl implements IMeetingsManagementService 
{
    @Autowired
    private MeetingsManagementMapper meetingsManagementMapper;

    /**
     * 查询会议管理
     * 
     * @param mmId 会议管理ID
     * @return 会议管理
     */
    @Override
    public MeetingsManagement selectMeetingsManagementById(Long mmId)
    {
        return meetingsManagementMapper.selectMeetingsManagementById(mmId);
    }

    /**
     * 查询会议管理列表
     * 
     * @param meetingsManagement 会议管理
     * @return 会议管理
     */
    @Override
    public List<MeetingsManagement> selectMeetingsManagementList(MeetingsManagement meetingsManagement)
    {
        return meetingsManagementMapper.selectMeetingsManagementList(meetingsManagement);
    }

    /**
     * 新增会议管理
     * 
     * @param meetingsManagement 会议管理
     * @return 结果
     */
    @Override
    public int insertMeetingsManagement(MeetingsManagement meetingsManagement)
    {
        return meetingsManagementMapper.insertMeetingsManagement(meetingsManagement);
    }

    /**
     * 修改会议管理
     * 
     * @param meetingsManagement 会议管理
     * @return 结果
     */
    @Override
    public int updateMeetingsManagement(MeetingsManagement meetingsManagement)
    {
        return meetingsManagementMapper.updateMeetingsManagement(meetingsManagement);
    }

    /**
     * 删除会议管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMeetingsManagementByIds(String ids)
    {
        return meetingsManagementMapper.deleteMeetingsManagementByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除会议管理信息
     * 
     * @param mmId 会议管理ID
     * @return 结果
     */
    @Override
    public int deleteMeetingsManagementById(Long mmId)
    {
        return meetingsManagementMapper.deleteMeetingsManagementById(mmId);
    }
}
